package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author : ZhangHH
 * @Date: 26/2/2025 下午 4:46
 * @Description :
 */
@RestController
public class TestController {

    public static boolean flag = true;

    @GetMapping("/test")
    public void test() {
        flag = false;
    }

    @GetMapping("/test2")
    public void test2() {
        flag = true;
    }
}
